using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Awaken.CodeGen.Controls
{
    public partial class ClassControl : TableBasedControl
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            propertyRepeater.DataSource = Table.Columns;
            propertyRepeater.DataBind();
                        
            oneToManyRepeater.DataSource = Table.OneToManys;
            oneToManyRepeater.DataBind();

            manyToOneRepeater.DataSource = Table.ManyToOnes;
            manyToOneRepeater.DataBind();

            manyToManyRepeater.DataSource = Table.ManyToManys;
            manyToManyRepeater.DataBind();
        }
    }
}